package test9;

public class CPerson {
    public CPerson(String name, int id, String sex, int age) {
        this.name = name;
        this.id = id;
        this.sex = sex;
        this.age = age;
    }
    public String toString(){
        return "员工姓名为:"+name+", 员工身份证号为:"+id+", 员工性别为:"+sex+", 员工年龄为 "+age;
    }

    private String name;//姓名
    private int id;//身份证号
    private String sex;//性别
    private int age;//年龄

}
